<?php
/**
 * Created by PhpStorm.
 * User: xuho
 * Date: 2020-05-04
 * Time: 00:36
 */

namespace app\common\subscribe;


use app\common\model\mysql\cdc\UserModel;
use app\common\service\CodeService;

class UserSubscribe
{
    public function onCreate($mobile)
    {
        return UserModel::addData(['mobile' => $mobile, 'invite_code' => CodeService::userInvite($mobile)]);
    }
}